-- GENERATED SPELL FOR [Plagued Swine] --


function spell0_16117(pUnit, Event) --@Boar Charge,Self--
pUnit:FullCastSpellOnTarget(3385,pUnit)
pUnit:RegisterEvent('Sorts_16117', 4000, 1)
end

function Sorts_16117(pUnit, Event)
local choix_sorts_16117 = math.random(0, 0)
if choix_sorts_16117 == 0 then
pUnit:RegisterEvent('spell0_16117', 1, 1)
end
end

function mob16117_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16117', math.random(1500, 3000), 1)
end

function mob16117_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16117_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16117_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16117, 1, 'mob16117_Action')
RegisterUnitEvent(16117, 2, 'mob16117_Leave')
RegisterUnitEvent(16117, 3, 'mob16117_Kill')
RegisterUnitEvent(16117, 4, 'mob16117_Die')
